package com.threeox.commonlibrary.util;

/**
 *
 * @ClassName: CommonConstant
 *
 * @Description: Todo(类库的常量)
 *
 * @author 赵屈犇
 *
 * @date 创建时间:2016/12/20 14:09
 *
 * @version 1.0
 */
public class CommonConstant {

    // 传入的文件名称
    public static final String FILENAMEMODEL = "FILENAMEMODEL";
    // 传入的标题名称
    public static final String TITLENAMEMODEL = "TITLENAMEMODEL";
    // 是否显示标题
    public static final String ISSHOWMODELTITLEBAR = "ISSHOWMODELTITLEBAR";

    // ABCD... 字母数组
    public static final String[] CHARARRAY = { "A", "B", "C", "D", "E", "F", "G", "H", "I",
            "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
            "W", "X", "Y", "Z", "#" };

    /** 
     *
     * @ClassName: ModelViewType
     *
     * @Description: Todo(卡片模型的变量类)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/20 14:13 
     * 
     * @version 1.0
     */
    public class ModelViewType {

        public static final String LAYOUTVIEW = "LAYOUTVIEW"; // Layout的View

        public static final String LISTMODELVIEW = "LISTMODELVIEW"; // list的模型驱动

        public static final String VIEWCLS = "VIEWCLS"; // 自定义view的Cls

        public static final String VIEWCONTROL = "VIEWCONTROL";// 实现IBaseViewControl接口的对象

        public static final String ELSE = "ELSE";// 其他的所有类型 主要包含布局中的TAG

    }

    /**
     *
     * @ClassName: RequestType
     *
     * @Description: Todo(请求类型)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/21 17:17
     *
     * @version 1.0
     */
    public class RequestType {

        public static final String HTTPREQTYPE = "HTTPREQTYPE"; // Http请求

        public static final String SQLITETYPE = "SQLITETYPE"; // 本地SQLIte请求类型

        public static final String RAWFILETYPE = "RAWFILETYPE"; // Raw文件夹下的请求类型

        public static final String ASSETSFILETYPE = "ASSETSFILETYPE"; // assets文件夹下的请求类型

    }
    
    /** 
     *
     * @ClassName: MethodType 
     *
     * @Description: Todo(请求方法类型)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/21 17:18 
     * 
     * @version 1.0
     */
    public class MethodType {

        public static final String GET = "GET"; // GET请求

        public static final String POST = "POST"; // POST请求

        public static final String POSTTEXT = "POSTTEXT"; // POSTTEXT请求

        public static final String PUT = "PUT"; // PUT 请求

        public static final String HEAD = "HEAD"; // HEAD 请求

        public static final String DELETE = "DELETE"; // DELETE 请求

        public static final String PATCH = "PATCH"; // PATCH 请求

        public static final String POSTFILE = "POSTFILE"; // POSTFile请求
    }

    /**
     *
     * @ClassName: ListViewType
     *
     * @Description: Todo(列表的ViewType)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/22 10:25
     *
     * @version 1.0
     */
    public class ListViewType {

        public static final String LISTVIEW = "LISTVIEW"; // ListView

        public static final String GRIDVIEW = "GRIDVIEW"; // GridView

        public static final String EXPANLISTVIEW = "EXPANLISTVIEW"; // EXPANLISTVIEW

        public static final String CUSTOMVIEW = "CUSTOMVIEW";// 自定义View

    }


    /**
     *
     * @ClassName: HeaderFooter
     *
     * @Description: Todo(上拉和下拉类型)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/22 10:28
     *
     * @version 1.0
     */
    public class HeaderFooter {

        public static final String HideAll = "HideAll"; // HideAll

        public static final String ShowAll = "ShowAll"; // ShowAll

        public static final String HideHeader = "HideHeader"; // HideHeader

        public static final String HideFooter = "HideFooter"; // HideFooter

    }

    /**
     *
     * @ClassName: CommandViewType
     *
     * @Description: Todo(按钮的View类型)
     *
     * @author 赵屈犇
     *
     * @date 创建时间:2016/12/22 下午10:02
     *
     * @version 1.0
     */
    public class CommandViewType {

    }

    /**
     *
     * @ClassName: RegularExp
     *
     * @Description: TODO(正则表达式变量)
     *
     * @author 赵屈犇
     *
     * @date 创建时间: 2017/6/29 12:02
     *
     * @version 1.0
     *
     */
    public class RegularExp {
        // el表达式  ${}
        public static final String EL_REG = "\\$\\{(.*?)\\}";
        // RAW{}  匹配raw文件名称
        public static final String RAW_REG = "RAW\\{(.*?)\\}";
        // STR{}   匹配string字符串名称
        public static final String STR_REG = "STR\\{(.*?)\\}";
        /**
         * 取得If的所有字符的正则表达式
         */
        public static final String IF_REG = "if\\(([\\s\\S]*?)\\}";
        /**
         * 取得If中间的表达式的正则表达式
         */
        public static final String IF_EXP_REG = "if\\(([\\s\\S]*?)\\)";

        public static final String IF_$_REG = IF_EXP_REG + "\\{([\\s\\S]*?)\\}";
    }
}
